/**
 * 
 */
package com.worksmap.core.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.worksmap.core.entity.TaoBaoSeller;
import com.worksmap.core.entity.User;

/**
 * 
 * @author jack
 * 2013.8.2
 */
public interface UserService {
	
	public User getUserByUserName(String userName) throws Exception;
	
	/**
	 * 用户注册
	 * jack
	 * 2013-9-12
	 */
	public boolean userRegister(User user) throws Exception;
	
	public List<User> getUserList();
	
	public TaoBaoSeller getSellerInfo(String code, String state, HttpServletResponse reponse);
	
	public TaoBaoSeller getSellerById(String sellerId);
	
	public TaoBaoSeller getSellerByNick(String nick);
	
	public boolean saveSeller(TaoBaoSeller seller);
	
	public TaoBaoSeller getCurrentSeller(HttpServletRequest request);
	
}
